package com.wzdigit.wms.basic.client.request.transfer;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 确认提交调拨单明细-转仓数和实收数一致
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class SubmitTransferRequest implements Serializable {
	
	private static final long serialVersionUID = -5825790328265109110L;

	/**
	 * 调拨单表头ID
	 */
	@ApiModelProperty(value = "调拨单表头ID", required = true)
	@NotNull(message = "调拨单表头ID不能为空")
	private Integer transferHeaderId;
	
	/**
	 * 点收SN集合
	 */
	@ApiModelProperty(value = "点收SN集合", required = true)
	@Valid
	@NotNull(message = "点收SN集合不能为空")
	@NotEmpty(message = "点收SN集合不能为空")
	private List<SubmitTransferDtlGoodsRequest> dtlGoodsList;
}
